package com.situ.javase.day7;

public class Teacher extends Person {
	private int salary;

	public void teach() {
		System.out.println("Teacher.teach()");
	}

	public int getSalary() {
		return salary;
	}

	public void setSalary(int salary) {
		this.salary = salary;
	}

}
